package hl.leco.colle;

import java.util.HashSet;
import java.util.Iterator;

/**
 * 
 * @author Liu Huan
 */


public class HashSetTest {
	public static void main(String[] args) {
		
		HashSet<String> hashSet = new HashSet<>();
		hashSet.add("wo");
		hashSet.add("ta");
		hashSet.add("ni");
		System.out.println("hashSet = " + hashSet);
		
		Iterator<String> iterator = hashSet.iterator();
		while (iterator.hasNext()){
			System.out.println(iterator.next());
		}
	}
}
